<?php
class DefalutModule
{
	public $db;
	public $base;

	public function __construct(&$base) 
	{
		$this->base = $base;
	}
	
	public function test($id)
	{
		echo "test".$id;
		//var_dump($this->db);
		$version = $this->base->db->version();
		var_dump($version);
		//var_dump($this->view);

		$xxx = 'boggles        theinivisblemonkey  willrule   theworl  d111111111111111111111111111地地”’“！@#￥%……&*（）——道道地地道道地方反复反复     反复反复d                           dddddddddd           ddddddddddd反复方法啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊';

		$enxxx = $this->base->encryption->encrypt($xxx);
		$dexxx = $this->base->encryption->decrypt($enxxx);

		echo "<br>-----------------------<br>".$enxxx."<br>-----------------------<br>";
		echo "<br>-----------------------<br>".$dexxx."<br>-----------------------<br>";

	}
	
	function hex2bin($data) 
	{ 
	    $len = strlen($data); 
	    return pack("H" . $len, $data); 
	}

	
}